<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://shiro.apache.org/tags" prefix="shiro"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="/jsp/include/head.jsp"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>数据采集</title>
</head>
<body>
	<!-- container -->
	<div class="container">
		<div class="row">
			<div class="col-md-12">
				<div class="row">
					<br> <br> <br> <br>
					<div class="col-md-12">
						<h1 class="text-center">欢迎使用HR系统</h1>
						<ol class="breadcrumb">
							<li><a href="">首页</a></li>
							<li><a href="manage/recruit">招聘流程</a></li>
							<li class="active">我是HR</li>
						</ol>
						<hr>
						<br>
					</div>
				</div>
			</div>
		</div>

		<div class="row">
			<div class="bs-example">
				<div class="row">
					<div class="col-md-12">
						<div class="thumbnail">
							<div class="caption">
								<h2>
									<strong>各种招聘环节</strong>
								</h2>
								<table class="table table-hover table-bordered">
									<thead>
										<tr>
											<th>姓名</th>
											<th>电话</th>
											<th>邮箱</th>
											<th>注册时间</th>
											<th>身份证</th>
											<th>期望工资</th>
											<th>工作城市</th>
											<th>生日</th>
											<th>申请职务</th>
											<th>当前状态</th>
										</tr>
									</thead>
									<tbody>
										<tr>
											<td>${candidate.name}</td>
											<td>${candidate.phone}</td>
											<td>${candidate.email}</td>
											<td>${candidate.registerTime}</td>
											<td>${candidate.IDCardNumber}</td>
											<td>${candidate.money}</td>
											<td>${candidate.city}</td>
											<td>${candidate.birthday}</td>
											<td>${candidate.job}</td>
											<td><c:choose>
													<c:when test="${candidate.state == 0}">
														<span class="text-primary">未初步审核</span>
													</c:when>
													<c:when test="${candidate.state == 1}">
														<span class="text-primary">已初步审核<br>未联系
														</span>
													</c:when>
													<c:when test="${candidate.state == 2}">
														<span class="text-primary">已联系<br>未笔试
														</span>
													</c:when>
													<c:when test="${candidate.state == 3}">
														<span class="text-primary">已笔试<br>未面试
														</span>
													</c:when>
													<c:when test="${candidate.state == 4}">
														<span class="text-primary">面试进行中<br></span>
													</c:when>
													<c:when test="${candidate.state == 5}">
														<span class="text-danger">审核终止</span>
													</c:when>
													<c:when test="${candidate.state == 6}">
														<span class="text-success">审核通过</span>
													</c:when>
												</c:choose></td>
										</tr>
									</tbody>
								</table>
								<hr>
								<p>
								<div class="row">
									<div class="col-md-12">
										<div class="panel-group">

											<div class="panel panel-default">
												<div class="panel-heading">
													<div class="panel-title" data-toggle="collapse"
														href="#panel5">结果</div>
												</div>
												<div id="panel5" class="panel-collapse in">
													<div class="panel-body">
														<div class="h3 text-danger">
															<c:choose>
																<c:when test="${candidate.state == 5 }">审核结束，未录取</c:when>
																<c:otherwise>
																	<c:if test="${candidate.state == 6 }">已被录取</c:if>
																	<c:if test="${candidate.state != 6 }">正在审核中</c:if>
																</c:otherwise>
															</c:choose>
														</div>
													</div>
												</div>
											</div>

											<div class="panel panel-default">
												<div class="panel-heading">
													<div class="panel-title" data-toggle="collapse"
														href="#panel1">初步审核</div>
												</div>
												<div id="panel1" class="panel-collapse collapse">
													<div class="panel-body">
														<form action="manage/recruit/step/review" method="post">
															<fieldset
																<c:if test="${review.reviewState != 0}">disabled</c:if>>
																<input value="${review.candidateId}" class="hide"
																	name="candidateId"> <input
																	value="${review.reviewId}" class="hide" name="reviewId">
																<textarea class="form-control" rows="5" name="note"
																	placeholder="HR意见">${review.note}</textarea>
																<div class="radio">
																	<label> <input type="radio" name="reviewState"
																		value="1" checked> 通过
																	</label>
																</div>
																<div class="radio">
																	<label> <input type="radio" name="reviewState"
																		value="2"> 不通过
																	</label>
																</div>
																<button class="btn btn-default" type="submit">提交</button>
															</fieldset>
														</form>
													</div>
												</div>
											</div>

											<div class="panel panel-default">
												<div class="panel-heading">
													<div class="panel-title" data-toggle="collapse"
														href="#panel2">联系求职者</div>
												</div>
												<div id="panel2" class="panel-collapse collapse">
													<div class="panel-body">
														<form action="manage/recruit/step/connect" method="post">
															<fieldset
																<c:if test="${connection.connectState != 0}">disabled</c:if>>
																<input value="${connection.candidateId}" class="hide"
																	name="candidateId"> <input class="hide"
																	value="${connection.connectionId}" name="connectionId">
																<textarea class="form-control" rows="5" name="note"
																	placeholder="HR意见？ 联系方式？ ">${connection.note}</textarea>
																<div class="radio">
																	<label> <input type="radio" name="connectState"
																		value="2" checked> 已联系，确认来公司
																	</label>
																</div>
																<div class="radio">
																	<label> <input type="radio" name="connectState"
																		value="1"> 已联系，被拒绝
																	</label>
																</div>
																<button class="btn btn-default" type="submit">提交</button>
															</fieldset>
														</form>
													</div>
												</div>
											</div>

											<div class="panel panel-default">
												<div class="panel-heading">
													<div class="panel-title" data-toggle="collapse"
														href="#panel3">笔试</div>
												</div>
												<div id="panel3" class="panel-collapse collapse">
													<div class="panel-body">
														<form action="manage/recruit/step/exam" method="post">
															<fieldset
																<c:if test="${exam.examState != 0}">disabled</c:if>>
																<input value="${exam.candidateId}" class="hide"
																	name="candidateId"> <input class="hide"
																	value="${exam.examId}" name="examId"> <input
																	class="form-control"
																	<c:if test="${exam.score != 0 }"> value="${exam.score}"</c:if>
																	name="score" placeholder="笔试成绩"> <br> <br>
																<textarea class="form-control" rows="5" name="hrNote"
																	placeholder="HR意见">${exam.hrNote}</textarea>
																<br> <br>
																<textarea class="form-control" rows="5"
																	name="examinerNote" placeholder="监考官意见">${exam.examinerNote}</textarea>
																<div class="radio">
																	<label> <input type="radio" name="examState"
																		value="2" checked> 通过笔试
																	</label>
																</div>
																<div class="radio">
																	<label> <input type="radio" name="examState"
																		value="1"> 未通过笔试
																	</label>
																</div>
																<button class="btn btn-default" type="submit">提交</button>
															</fieldset>
														</form>
													</div>
												</div>
											</div>

											<div class="panel panel-default">
												<div class="panel-heading">
													<div class="panel-title" data-toggle="collapse"
														href="#panel4">面试</div>
												</div>
												<div id="panel4" class="panel-collapse collapse">
													<div class="panel-body">
														<form action="manage/recruit/step/interview" method="post">
															<fieldset
																<c:if test="${interview.interviewState != 0}">disabled</c:if>>
																<input value="${interview.candidateId}" class="hide"
																	name="candidateId"> <input class="hide"
																	value="${interview.interviewId}" name="interviewId">
																<input class="form-control"
																	<c:if test="${interview.score != 0 }"> value="${interview.score}"</c:if>
																	name="score" placeholder="笔试成绩"> <br> <br>
																<textarea class="form-control" rows="5" name="hrNote"
																	placeholder="HR意见">${interview.hrNote}</textarea>
																<br> <br>
																<textarea class="form-control" rows="5"
																	name="interviewerNote" placeholder="面试官意见">${interview.interviewerNote}</textarea>
																<div class="radio">
																	<label> <input type="radio" name="interviewState"
																		value="2" checked> 通过面试
																	</label>
																</div>
																<div class="radio">
																	<label> <input type="radio" name="interviewState"
																		value="1"> 未通过面试
																	</label>
																</div>
																<button class="btn btn-default" type="submit">提交</button>
															</fieldset>
														</form>
													</div>
												</div>
											</div>
										</div>
									</div>
								</div>
								</p>

							</div>
						</div>
					</div>
				</div>

				<br> <br>
			</div>
		</div>
	</div>
	<!-- /container -->

</body>
</html>